package com.wxy.test2.decoratorpattern;

public class TransparentFormDecorator extends ComponentDecorator{
    public TransparentFormDecorator(Component component) {
        super(component);
    }

    public void setTransparentForm(){
        System.out.println("新增[透明窗体]已加载");
    }

    @Override
    public void display() {
        super.display();
        this.setTransparentForm();
    }
}
